namespace LoggingMagic.LoggingParameters
{
    internal class MethodFinderParameters : IMethodFinderParameters
    {
        public string LogAttributeName { get; set; }
        public string NoLogAttributeName { get; set; }
        public bool LogSetters { get; set; }
        public bool LogGetters { get; set; }

        public MethodFinderParameters(ILoggingTaskAttributes attributes)
        {
            LogAttributeName = "Log";
            NoLogAttributeName = "NoLog";

            LogSetters = true;
            LogGetters = false;

            ParametersChecker.CopyNotEmptyParameters(this, attributes);

            LogAttributeName += "Attribute";
            NoLogAttributeName += "Attribute";
        }
    }
}